package com.rs.controller;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Toolkit;
import java.awt.Font;
import java.awt.Color;

@Scope("prototype") //创建多例
public class TeacherUpdate extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	private JTextField textField_7;
	private JTextField textField_8;
	private JTextField textField_9;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TeacherUpdate frame = new TeacherUpdate();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TeacherUpdate() {
		setAlwaysOnTop(true);
		setIconImage(Toolkit.getDefaultToolkit().getImage(TeacherUpdate.class.getResource("/images/logo1.png")));
		setTitle("修改教师信息");
//		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 626, 549);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblxuigai = new JLabel("\u6559\u5E08\u4FE1\u606F\u4FEE\u6539");
		lblxuigai.setForeground(Color.GRAY);
		lblxuigai.setFont(new Font("微软雅黑", Font.PLAIN, 22));
		lblxuigai.setBounds(205, 32, 155, 27);
		contentPane.add(lblxuigai);
		
		JLabel lblNewLabel = new JLabel("\u5934\u50CF\uFF1A");
		lblNewLabel.setBounds(53, 119, 54, 15);
		contentPane.add(lblNewLabel);
		
		JLabel label = new JLabel("\u624B\u673A\u53F7\uFF1A");
		label.setBounds(53, 164, 54, 15);
		contentPane.add(label);
		
		JLabel label_1 = new JLabel("\u8EAB\u4EFD\u8BC1\u53F7\uFF1A");
		label_1.setBounds(53, 216, 65, 15);
		contentPane.add(label_1);
		
		JLabel label_2 = new JLabel("\u94F6\u884C\u5361\u53F7\uFF1A");
		label_2.setBounds(53, 267, 65, 15);
		contentPane.add(label_2);
		
		JLabel label_3 = new JLabel("\u51FA\u751F\u65E5\u671F\uFF1A");
		label_3.setBounds(53, 322, 65, 15);
		contentPane.add(label_3);
		
		JLabel label_4 = new JLabel("\u5E74\u9F84\uFF1A");
		label_4.setBounds(53, 373, 54, 15);
		contentPane.add(label_4);
		
		JLabel label_5 = new JLabel("");
		label_5.setBounds(53, 434, 54, 15);
		contentPane.add(label_5);
		
		JLabel label_6 = new JLabel("\u73B0\u4F4F\u5740\uFF1A");
		label_6.setBounds(310, 216, 54, 15);
		contentPane.add(label_6);
		
		textField = new JTextField();
		textField.setBounds(124, 116, 144, 27);
		contentPane.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(124, 161, 144, 27);
		contentPane.add(textField_1);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(124, 210, 144, 27);
		contentPane.add(textField_2);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(124, 261, 144, 27);
		contentPane.add(textField_3);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(124, 316, 144, 27);
		contentPane.add(textField_4);
		
		textField_5 = new JTextField();
		textField_5.setColumns(10);
		textField_5.setBounds(124, 367, 144, 27);
		contentPane.add(textField_5);
		
		textField_6 = new JTextField();
		textField_6.setColumns(10);
		textField_6.setBounds(124, 416, 144, 27);
		contentPane.add(textField_6);
		
		JLabel label_7 = new JLabel("\u804C\u52A1\uFF1A");
		label_7.setBounds(310, 119, 54, 15);
		contentPane.add(label_7);
		
		JLabel label_8 = new JLabel("\u90E8\u95E8\uFF1A");
		label_8.setBounds(310, 164, 54, 15);
		contentPane.add(label_8);
		
		textField_7 = new JTextField();
		textField_7.setColumns(10);
		textField_7.setBounds(361, 116, 144, 27);
		contentPane.add(textField_7);
		
		textField_8 = new JTextField();
		textField_8.setColumns(10);
		textField_8.setBounds(361, 158, 144, 27);
		contentPane.add(textField_8);
		
		JButton btnNewButton = new JButton("\u63D0\u4EA4");
		btnNewButton.setBounds(382, 409, 104, 41);
		contentPane.add(btnNewButton);
		
		textField_9 = new JTextField();
		textField_9.setColumns(10);
		textField_9.setBounds(361, 210, 144, 27);
		contentPane.add(textField_9);
		
		JLabel label_9 = new JLabel("\u6027\u522B\uFF1A");
		label_9.setBounds(53, 422, 54, 15);
		contentPane.add(label_9);
	}
}
